package dao;

import java.util.List;

import entityJPA.Positioncomment;

/**
 * 
 * This interface defines the common methods for
 * JDBCPositionCommentDAO and JPAPositionCommentDAO classes.
 *
 */
public interface IPositionCommentDAO {
	
	/**
	 * Inserts into database a new positionComment.       
	 * @param positionComment        
	 */
	public int insert(Positioncomment pc);
	
	/**
	 * Updates a positionComment in database.
	 * @param positionComment        
	 */
	public void update(Positioncomment pc);
	
	/**
	 * Deletes a positionComment from database.
	 * @param positionComment
	 */
	public void delete(Positioncomment pc);
	
	/**
	 * Finds a specific positionComment given the primary key.
	 * @param idPositionComment
	 * @return a PositionComment instance which has the same idPositionComment
	 */
	public Positioncomment findById(int id);
	
	/**
	 * Finds all positionComments in database.
	 * @return List<PositionComment>
	 */
	public List<Positioncomment> findAll();
	
}
